<?php
// HTTP
define('DOMAIN_NAME', isset($_SERVER['HTTP_HOST'])? $_SERVER['HTTP_HOST'] : '');
define('HTTP_SERVER', 'http://'.DOMAIN_NAME.'/');
define('HTTP_IMAGE', 'http://'.DOMAIN_NAME.'/image/');
define('HTTP_SERVER_JP', 'http://'.DOMAIN_NAME.'/jp/');
define('HTTP_ADMIN_SERVER', 'http://'.DOMAIN_NAME.'/admin/');

// HTTPS
define('HTTPS_SERVER', 'https://'.DOMAIN_NAME.'/');
define('HTTPS_SERVER_JP', 'https://'.DOMAIN_NAME.'/jp/');
define('HTTPS_IMAGE', 'https://'.DOMAIN_NAME.'/image/');
define('HTTPS_ADMIN_SERVER', 'https://'.DOMAIN_NAME.'/admin/');

$dirName = dirname(__FILE__);
define('DIR_PROJECT', $dirName);
define('DIR_APPLICATION', $dirName . '/catalog/');
define('DIR_SYSTEM', $dirName . '/system/');
define('DIR_DATABASE', $dirName . '/system/database/');
define('DIR_LANGUAGE', $dirName . '/catalog/language/');
define('DIR_TEMPLATE', $dirName . '/catalog/view/theme/');
define('DIR_CONFIG', $dirName . '/system/config/');
define('DIR_IMAGE', $dirName . '/image/');
define('DIR_CACHE', $dirName . '/system/cache/');
define('DIR_DOWNLOAD', $dirName . '/download/');
define('DIR_LOGS', $dirName . '/system/logs/');
define('DIR_RESOURCES', $dirName . '/resources/');

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'root');
define('DB_PASSWORD', '123456');
define('DB_DATABASE', 'goodmilk');
define('DB_PREFIX', '');
?>